<?php 

$data=include'wan2.php';

$data[]=$_POST;

$arr=var_export($data,true);

$arr = '<?php return '.$arr.'?>';

file_put_contents('wan2.php', $arr)


 ?>